package com.yf.hellojni;

import com.yf.hellojni.R;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
    
    public void jniCall(View v) {
    	System.loadLibrary("hello");
    	Toast.makeText(this, stringFromJni(), Toast.LENGTH_SHORT).show();
    }
    
    public native String stringFromJni();
    
}
